package com.zimmur.service.impl.zone;

import java.util.List;
import java.util.TreeSet;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zimmur.dao.zone.ITopicMessageRecommandDao;
import com.zimmur.model.zone.SharedProperty;
import com.zimmur.model.zone.TopicsMessageRecommand;
import com.zimmur.service.zone.ITopicMessageRecommandService;
@Service("topicMessageRecommandService") 
public class TopicMessageRecommandServiceImpl implements ITopicMessageRecommandService{
    @Resource  
    private ITopicMessageRecommandDao topicMessageRecommandDao;
	
	@Override
	public List<TopicsMessageRecommand> selectTopicMessageRecommandList(SharedProperty sharedProperty) {
		return topicMessageRecommandDao.selectTopicMessageRecommandList(sharedProperty);
	}

	@Override
	public int insertTopicMessageRecommand(TopicsMessageRecommand topicsMessageRecommand) {
		return topicMessageRecommandDao.insertTopicMessageRecommand(topicsMessageRecommand);
	}

	@Override
	public TreeSet<Long> selectTopicMessageRecommandSet(SharedProperty sharedProperty) {
		
		return topicMessageRecommandDao.selectTopicMessageRecommandSet(sharedProperty);
	}

	@Override
	public int selectTopicMessageRecommandCount(String moduleId) {
		return topicMessageRecommandDao.selectTopicMessageRecommandCount(moduleId);
	}

}
